package shujia.day07.ketang;


class Animal{
    public void eat(){
        System.out.println("吃饭");
    }
}

class Dog extends Animal{

}

public class Test1 {
    public static void main(String[] args) {
        Animal a = new Dog();
    }
}
